package com.ucloud.service.impl;

import com.ucloud.dao.UserMapper;
import com.ucloud.domain.User;
import com.ucloud.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public void insert(User user) {
        userMapper.insertSelective(user);
    }

    @Override
    public void update(User user) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public User queryById(Integer id) {
        return null;
    }

    @Override
    public List<User> queryByAll() {
        return userMapper.selectByExample(null);
    }
}
